package cc.yihy.storage.entity;

/**
 * @author Yihy
 * @version V1.0
 * @Package cc.yihy.storage.entity
 * @Description:
 * @date 2017/6/28 14:26
 */


public class UpResult {

    private boolean success;
    private String fileName;
    private String unique;

    private long fileSize;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getUnique() {
        return unique;
    }

    public void setUnique(String unique) {
        if (unique != null)
            this.unique = unique.toUpperCase();
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    @Override
    public String toString() {
        return "UpResult{" +
                "success=" + success +
                ", fileName='" + fileName + '\'' +
                ", unique='" + unique + '\'' +
                ", fileSize=" + fileSize +
                '}';
    }
}
